<div class="bg-light lter b-b wrapper-md">
    <div><h1 class="m-n font-thin h3">我的待办</h1></div>
</div>
<div class="" ng-controller="bpmTaskListController">
  <div class="panel panel-default">
    <div class="panel-body b-b b-light">
      过滤: <input id="filter" type="text" class="form-control input-sm w-sm inline m-r"/>
    </div>
    <div>
      <table class="table m-b-none" ui-jq="footable" data-filter="#filter" ui-options="{paginate : false}">
        <thead>
			<tr>
                <th  data-type="numeric">任务ID</th>
                <th>任务名称</th>
                <th  data-type="numeric">流程实例ID</th>
                <th>流程定义ID</th>
                <th>父任务ID</th>
                <th>任务委派状态</th>
                <th>任务创建时间</th>
                <th>办理人</th>
                <th data-sort-ignore="true">操作</th>
			</tr>
		</thead>
        <tbody>
          <tr ng-repeat="task in list" >
              <td ng-bind="task.id"></td>
              <td ng-bind="task.name"></td>
              <td>
                  <a app-auth ui-sref="app.bpm.manager.process.trace.view({executionId:{{task.processInstanceId}} })">
                    {{task.processInstanceId}}
                  </a>
              </td>
              <td ng-bind="df.processDefinitionId"></td>
              <td>
                  <div ng-if="!task.parentTaskId">无</div>
                  <div ng-if="task.parentTaskId"><a href="getform/{{task.parentTaskId}}">{{task.parentTaskId}}</a></div>
              </td>
              <td>
                  <div ng-if="task.delegationState == 'PENDING'"><i class="glyphicon glyphicon-ok"></i>被委派</div>
                  <div ng-if="task.delegationState == 'RESOLVED'"><i class="glyphicon glyphicon-ok"></i>任务已处理完成</div>
              </td>
              <td ng-bind="task.createTime | date : 'yyyy-MM-dd hh:mm:ss'"></td>
              <td ng-bind="task.assignee"></td>
              <td>
                  <div ng-if="!task.assignee">
                      <a class="btn btn-primary" ng-click="claim(task.id)"><i class="glyphicon glyphicon-ok"></i>签收</a>
                      <a class="btn" app-auth ui-sref="app.bpm.manager.task.form({taskId:task.id})"><i class="glyphicon glyphicon-eye-open"></i>查看</a>
                  </div>
                  <div ng-if="task.assignee">
                      <a class="btn btn-primary" app-auth ui-sref="app.bpm.manager.task.form({taskId:task.id})"><i class="glyphicon glyphicon-user"></i>办理</a>
                      <a class="btn" ng-click="unclaim(task.id)"><i class="glyphicon glyphicon-remove"></i>反签收</a>
                  </div>
              </td>
          </tr>
        </tbody>
        <tfoot>
          <tr>
              <td colspan="9">
                  <div class="pull-right" ng-if="page.total">
                      <p class="form-control-static pull-left">（第{{page.start + 1}}至{{page.end}}行/共计{{page.total}}行）</p>
                      <uib-pagination class="pull-right padder-lg" total-items="page.total" ng-model="page.currentPage" items-per-page="page.pageSize" max-size="5" class="m-t-none m-b" boundary-links="true" rotate="true" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                      <!--<div class="pull-right m-t-none m-b">-->
                          <!--共{{page.total}}条-->
                      <!--</div>-->
                  </div>
              </td>
          </tr>
        </tfoot>
      </table>
    </div>
  </div>
</div>